<h2>Why is this an issue?</h2>
<p>The private class members were introduced in ES2022 and use <code>#</code> (hash) symbol prefix. It is possible to declare private fields, methods,
getters and setters as well as their static counterparts. The private members are only accessible from within the current class body and aren’t
inherited by subclasses. They also cannot be removed with <code>delete</code> operator.</p>
<pre>
class MyClass {
    #foo = 123;
    bar(){
        return this.#foo; // ok
    }
}

const obj = new MyClass();
obj.#foo = 345; // error: #foo is not accessible outside of the class
</pre>
<p>Private class members that are declared and not used anywhere in the code are most likely an error due to incomplete refactoring and should be
corrected or removed.</p>
<pre data-diff-id="1" data-diff-type="noncompliant">
class MyClass {
    #privateField1;
    #privateField2;  // Noncompliant: #privateField2 is unused
    #privateMethod(){} // Noncompliant: #privateMethod is unused
    publicMethod(){
        return this.#privateField1;
    }
}
</pre>
<p>To fix the code remove unused private member of the class.</p>
<pre data-diff-id="1" data-diff-type="compliant">
class MyClass {
    #privateField1;
    publicMethod(){
        return this.#privateField1;
    }
}
</pre>
<h2>Resources</h2>
<h3>Documentation</h3>
<ul>
  <li> <a href="https://eslint.org">eslint</a> - Rule <a
  href="https://eslint.org/docs/latest/rules/no-unused-private-class-members">no-unused-private-class-members</a> </li>
  <li> MDN web docs - <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields">Private class
  features</a> </li>
  <li> MDN web docs - <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">Classes</a> </li>
</ul>
